﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Theme="SkinFile" CodeBehind="AddNewMatchSentence.aspx.cs" Inherits="Nivdal.AddNewMatchSentence" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="AddSentencePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <asp:HiddenField ID="SentenceIdHiddenField" runat="server" />
	
    <asp:UpdateProgress ID="Progress" runat="server" AssociatedUpdatePanelID="AddSentencePanel">
        <ProgressTemplate>
            <div class="ajaxloader">
                <asp:Image ID="ProgressImage" runat="server" ImageUrl="~/Images/ajax-loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>                    
    
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="InitalTitleLabel" runat="server" Text="Select parameters:" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">
    

    
        <br />
        <asp:Label ID="ErrorLabel" runat="server" Text="" SkinID="GreenSmallHeaderLabel"></asp:Label>
        <table>
        <tr>
        <td>
            <asp:Label ID="EventTypeTitleLabel" runat="server" Text="EventType" SkinID="InfoLabel"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="EventTypeDDL" runat="server">
            <asp:ListItem Text="--choose event type--" Value="0"></asp:ListItem>
            <asp:ListItem Text="Shot on goal" Value="1"></asp:ListItem>
            <asp:ListItem Text="Header shot on goal" Value="2"></asp:ListItem>
            <asp:ListItem Text="Free kick shot on goal" Value="3"></asp:ListItem>
            <asp:ListItem Text="Penalty" Value="4"></asp:ListItem>
            <asp:ListItem Text="Foul" Value="5"></asp:ListItem>
            <asp:ListItem Text="Substitution" Value="6"></asp:ListItem>
            <asp:ListItem Text="Corner" Value="7"></asp:ListItem>
            <asp:ListItem Text="Offside" Value="8"></asp:ListItem>
            <asp:ListItem Text="Match opening" Value="9"></asp:ListItem>
            <asp:ListItem Text="First half ends" Value="10"></asp:ListItem>
            <asp:ListItem Text="Match ends after 90 minutes" Value="11"></asp:ListItem>
            <asp:ListItem Text="Start of extra time" Value="12"></asp:ListItem>
            <asp:ListItem Text="Extra time half break" Value="13"></asp:ListItem>
            <asp:ListItem Text="Match Ends after 120 minutes" Value="14"></asp:ListItem>
            <asp:ListItem Text="Penalty Shootout starts" Value="15"></asp:ListItem>
            <asp:ListItem Text="Match Ends after Penalty shootout" Value="16"></asp:ListItem>
            <asp:ListItem Text="Penalty shootout end with a lot" Value="17"></asp:ListItem>
            <asp:ListItem Text="Player Becomes a keeper" Value="18"></asp:ListItem>
            <asp:ListItem Text="Match ends by forfeit" Value="19"></asp:ListItem>
            <asp:ListItem Text="match opening formation" Value="20"></asp:ListItem>
            <asp:ListItem Text="Present starting eleven" Value="21"></asp:ListItem>
            <asp:ListItem Text="Out" Value="24"></asp:ListItem>
            <asp:ListItem Text="Goal kick" Value="25"></asp:ListItem>
            <asp:ListItem Text="Synergy becomes 0 due to inconmplete lineup" Value="26"></asp:ListItem>
            </asp:DropDownList>
    
        </td>
        </tr>
        <tr>
        <td>
            <asp:Label ID="Param1Label" runat="server" Text="Parameter 1:" SkinID="GridLabel"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="param1DDL" runat="server">
                <asp:ListItem Text="irrelevant" Value="0"></asp:ListItem>
                <asp:ListItem Text="1" Value="1"></asp:ListItem>
                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                <asp:ListItem Text="4" Value="4"></asp:ListItem>
                <asp:ListItem Text="5" Value="5"></asp:ListItem>
            </asp:DropDownList>
        </td>
        </tr>
        <tr>
        <td>
            <asp:Label ID="Param2Label" runat="server" Text="Parameter 2:" SkinID="GridLabel"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="param2DDL" runat="server">
                <asp:ListItem Text="irrelevant" Value="0"></asp:ListItem>
                <asp:ListItem Text="1" Value="1"></asp:ListItem>
                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                <asp:ListItem Text="4" Value="4"></asp:ListItem>
            </asp:DropDownList>
        </td>
        </tr>
       <tr>
        <td>
            <asp:Label ID="Param3Label" runat="server" Text="Parameter 3:" SkinID="GridLabel"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="param3DDL" runat="server">
                <asp:ListItem Text="irrelevant" Value="0"></asp:ListItem>
                <asp:ListItem Text="1" Value="1"></asp:ListItem>
                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                <asp:ListItem Text="4" Value="4"></asp:ListItem>
            </asp:DropDownList>
        </td>
        </tr>
        <tr>
        <td>
            <asp:Label ID="Param4Label" runat="server" Text="Parameter 4:" SkinID="GridLabel"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="param4DDL" runat="server">
                <asp:ListItem Text="irrelevant" Value="0"></asp:ListItem>
                <asp:ListItem Text="1" Value="1"></asp:ListItem>
                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                <asp:ListItem Text="4" Value="4"></asp:ListItem>
            </asp:DropDownList>
        </td>
        </tr>
        <tr>
        <td>
            <asp:Label ID="NumPartsTitleLabel" runat="server" Text="Number of sentence parts" SkinID="InfoLabel"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="NumPartsDDL" runat="server">
                <asp:ListItem Text="1" Value="1"></asp:ListItem>
                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                <asp:ListItem Text="4" Value="4"></asp:ListItem>
                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                <asp:ListItem Text="6" Value="6"></asp:ListItem>
                <asp:ListItem Text="7" Value="7"></asp:ListItem>
            </asp:DropDownList>
        </td>
        </tr>
        <tr>
        <td>
            <asp:Label ID="Label1" runat="server" Text="Description" SkinID="InfoLabel"></asp:Label>
        </td>
        <td>
            <CustomControls:TextArea ID="DescriptionTextBox" runat="server" Width="300" Height="100" 
            TextMode="MultiLine" MaxLength="256" ></CustomControls:TextArea>
        </td>
        </tr>
        </table>
        <asp:Button ID="CreateNewEventButton" runat="server" Text="Create new event" OnClick="CreateNewSentence" OnClientClick="return confirm('create?')" />
    
        <br /><hr /><br />
        <asp:Label ID="SentenceIdLabel" runat="server" Text="" SkinID="GridLabel"></asp:Label>
        <br />
        <asp:Repeater ID="SentencePartsRepeater" runat="server">
        <ItemTemplate>
            <asp:Label ID="PartNumberLabel" runat="server" Text='<%# "Part " + Container.DataItem.ToString() %>'></asp:Label>
            <CustomControls:TextArea ID="PartTextBox" runat="server" MaxLength="256" TextMode="MultiLine" 
            Width="400" Height="100"></CustomControls:TextArea>
            <asp:DropDownList ID="SeparatorsDDL" runat="server" DataSourceID="SeparatorsDataSource" DataTextField="PartDescription" DataValueField="Id">
            </asp:DropDownList>
        </ItemTemplate>
        <SeparatorTemplate>
        <br />
        </SeparatorTemplate>
        </asp:Repeater>
        <br />
        <asp:Panel runat="server" ID="SendButtonsPanel" Visible="false">
            <asp:Button ID="SendButton" runat="server" Text="Submit" OnClick="SubmitAll" OnClientClick="return confirm('submit?')" />
            <br /><br />
            <asp:Button ID="CancelButton" runat="server" Text="Cancel" OnClientClick="return confirm('cancel?')" 
             OnClick="CancelAll" />
        </asp:Panel>

    </div>
    </div>
    <asp:SqlDataSource ID="SeparatorsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetAllNewMatchSentencesSeparators" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>

    </ContentTemplate>
    </asp:UpdatePanel>
    
</asp:Content>

